<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <p>
        视图:
        <input type="radio" v-model="city" value="nj" /> 南京
        <input type="radio" v-model="city" value="sh" /> 上海
        <input type="radio" v-model="city" value="wx" /> 无锡
        <br />
        数据: {{city}}
      </p>
    </div>
    <script src="./vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {
          city: "wx",
        },
      });
    </script>
  </body>
</html>
